package com.sjtu.rental.form;

import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

import com.sjtu.rental.entity.House;

@Component("houseForm")
public class HouseForm implements Validator {

	private House house;
	
	private String[] files;

	public String[] getFiles() {
		return files;
	}

	public void setFiles(String[] files) {
		this.files = files;
	}

	public boolean supports(Class<?> arg0) {
		return this.getClass().equals(arg0);
	}

	public void validate(Object o, Errors e) {

	}

	// getter and setter

	public House getHouse() {
		return house;
	}

	public void setHouse(House house) {
		this.house = house;
	}
}
